#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QCameraInfo>
#include <Qt3DRender/QCamera>
#include <QMap>
#include "QStringListModel"
#include <QCameraImageCapture>

#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_listView_clicked(const QModelIndex &index);

    void on_pushButton_capture_clicked();

private:
    Ui::MainWindow *ui;
    QMap<QString,QCamera*> camera_map;
    QStringListModel *str_list_model;
    QCamera *current_camera;
    QMap<QString,QCameraImageCapture*> capture_map;
    QCameraImageCapture *current_capture;
    int pic_num;

};

#endif // MAINWINDOW_H
